<?php
/*
获取商家证件照
*/
include('../conn.php');
// 需传参数 
$shopid = $_REQUEST[shopid];
// 需传参数 end

if ($shopid != '') {
	$query = mysql_query("select licence from shop where shopid=".$shopid);
	$shop = mysql_fetch_assoc($query);
	$licence = explode(',', $shop[licence]);
	if ($licence[0] == '') {
		$licence = array();
	}
	$arr = array('code' => 200, 'msg' => '查询成功', 'licence' => $licence );
}else{
	$arr = array('code' => 400, 'msg' => 'shopid不存在' );
}
echo json_encode($arr);